<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>if</h1>
<span th:if="10>1">只有条件语句为真时才显示该内容</span>
<h1>unless</h1>
<span th:unless="10<1">只有条件语句为假时才显示该内容</span>
</body>
</html>